package com.wl.application.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_emp")
public class Emp {
  @TableId(type = IdType.AUTO)
  private Integer empno;
  private String ename;
  private String job;
  private Integer mgr;
  private Date hiredate;
  private Double sal;
  private Double comm;
  private Integer deptno;

  public Emp(String ename, String job, Integer mgr, Date hiredate, Double sal, Double comm, Integer deptno) {
    this.ename = ename;
    this.job = job;
    this.mgr = mgr;
    this.hiredate = hiredate;
    this.sal = sal;
    this.comm = comm;
    this.deptno = deptno;
  }

  public Emp(Integer empno, String ename) {
    this.empno = empno;
    this.ename = ename;
  }
}
